import { BaseResponse, AjaxRequest } from './index'
const fetch = new AjaxRequest({
  baseURL: 'https://api.xiwang.com',
})
/**
 * 上传
 * @returns {object} 状态信息
 */
export async function getToken(data: any): Promise<any> {
  const res = await fetch._ajax({
    url: '/login/LoginV1/getToken',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    data,
  })
  return res
}
